//
// Created by xy on 2024/10/23.
//

#ifndef WEBDESK_UTILS_PUBLIC_H_
#define WEBDESK_UTILS_PUBLIC_H_

#include "string.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/sha.h>
#include <openssl/evp.h>
#include <time.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
//#include"public.h"


#define SALT_LENGTH 17 // 盐的长度

int getToken(char *protocol,char **agv);
void generate_random_salt(char *salt);
void hash_password_with_salt(const char *password, const char *salt, char *hash);


void hash_file(int file_fd,char * hashed_file);

#endif //WEBDESK_UTILS_PUBLIC_H_
